<?php

namespace app\admin\model;

class AboutModel extends BaseModel
{
    protected $pk = 'id';
    protected $table = 'web_about';
    public function mUpdate($param = [], $id)
    {
        return $this->where([
            'id' => $id
        ])->update($param);
    }

    public function mInsert($param = [])
    {
        return $this->insertGetId($param);
    }

    public function getInfoById($field = ['id'], $id)
    {
        return $this->where([
            'id' => $id
        ])->field($field)->find();
    }
}